//
//  CZMessage.h
//  QQ聊天界面
//
//  Created by MAC on 16-3-11.
//  Copyright (c) 2016年 MAC. All rights reserved.
//

#import <Foundation/Foundation.h>

//枚举消息发送者类别
typedef enum{
    CZMessageTypeMe=0,
    CZMessageTypeOther=1
}CZMessageType;

@interface CZMessage : NSObject

//正文消息
@property(nonatomic,copy)NSString * text;

//消息发送时间
@property(nonatomic,copy)NSString * time;

//消息发送者类型
@property(nonatomic,assign)CZMessageType type;

//实例方法用字典初始化模型对象
-(instancetype)initWithDict:(NSDictionary*)dict;

//类方法
+(instancetype)messageWithDict:(NSDictionary*)dict;
@end
